﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Mvc;
using Blazing.BusinessObjects.Cms;
using System.Collections.Generic;

namespace Blazing.MvcBlog.Classes
{
    public class PostsViewData
    {
        private ViewDataDictionary _dict = new ViewDataDictionary();
        public List<Contentpage> Posts = null;

        public object this[string key]
        {
            get
            {
                return _dict[key];
            }
            set
            {
                _dict[key] = value;
            }
        }
    }

    public class PostViewData
    {
        private ViewDataDictionary _dict = new ViewDataDictionary();
        public Contentpage Post = null;

        public object this[string key]
        {
            get
            {
                return _dict[key];
            }
            set
            {
                _dict[key] = value;
            }
        }
    }
}
